<template>
  <div id="search">
    <van-search
      v-model="searchContent"
      shape="round"
      background="linear-gradient(-45deg, #0066ff, #4f64ff, #7053ff, #3321fb)"
      placeholder="请输入搜索关键词"
      @search="onSearch"
    />
  </div>
</template>

<script>
export default {
  name: 'Search',
  data () {
    return {
      searchContent: this.$route.params.searchContent
    }
  },
  methods: {
    onSearch() {
      console.log("点击了搜索！！！")
    }
  }
}
</script>

<style scoped>

</style>